package com.api.syh56.shengyunhui.config;


import com.alibaba.nls.client.protocol.NlsClient;
import com.api.syh56.shengyunhui.properties.AliSpeechProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class NlsClientConfig {

    @Autowired
    private AliSpeechProperties aliSpeechProperties;

    @Bean
    public NlsClient nlsClient() {
        return new NlsClient(aliSpeechProperties.getUrl(), aliSpeechProperties.getToken());
    }
}